import { get, post } from "@/utils/baseApiMethod";

export function createGroup(data) {
  return post("/chatUser/createGroup", data);
}

export function getGroupList(params) {
  return get("/chatUser/getGroupList", params);
}

export function getGroupMemberList(groupId) {
  return get(`/chatUser/getGroupMemberList/:${groupId}`, params);
}

export function joinGroup(data) {
  return post("/chatUser/joinGroup", data);
}

export function quitGroup(data) {
  return post("/chatUser/quitGroup", data);
}

export function addPrivateChat(data) {
  return post("/chatUser/addPrivateChat", data);
}